<template>
  <h1>home</h1>
  <router-link to="/"> 棋盘 </router-link>
  <router-link to="/home"> home </router-link>
  <router-link to="/login"> login </router-link>
  <h1>hello你好</h1>
  <router-link to="/login/login"> 登录 </router-link>
  <router-link to="/login/reg"> 注册 </router-link>
</template>

<script setup>
import { ref } from "vue";
</script>
<style scoped>
h1 {
  font-size: 3rem;
  color: #333;
  text-align: center;
  margin: 2rem 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

a.router-link-active, a.router-link-exact-active {
  font-weight: bold;
}

.router-link {
  display: inline-block;
  margin: 0 1rem;
  padding: 0.5rem 1.2rem;
  font-size: 1.2rem;
  color: #fff;
  background-color: #8b5e3c; /* wood brown */
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.router-link:hover {
  background-color: #a6784a;
  cursor: pointer;
}
</style>
